CREATE TABLE [dbo].[DnnProduct_CDS_StampSets]
(
[ID] [int] NOT NULL IDENTITY(1, 1),
[TemplateID] [int] NOT NULL,
[DefaultStampConfigID] [int] NULL,
[DefaultDRMStampConfigID] [int] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[DnnProduct_CDS_StampSets] ADD CONSTRAINT [PK_DnnProduct_CDS_StampSets] PRIMARY KEY CLUSTERED  ([ID]) WITH (FILLFACTOR=85) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_DnnProduct_CDS_StampSets_DefaultDRMStampConfig] ON [dbo].[DnnProduct_CDS_StampSets] ([DefaultDRMStampConfigID]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_DnnProduct_CDS_StampSets_DefaultStampConfig] ON [dbo].[DnnProduct_CDS_StampSets] ([DefaultStampConfigID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[DnnProduct_CDS_StampSets] ADD CONSTRAINT [FK_DnnProduct_CDS_StampSets_DISC_DefaultDRMStampConfig] FOREIGN KEY ([DefaultDRMStampConfigID]) REFERENCES [dbo].[DISC_DefaultDRMStampConfig] ([ID])
GO
ALTER TABLE [dbo].[DnnProduct_CDS_StampSets] ADD CONSTRAINT [FK_DnnProduct_CDS_StampSets_DISC_DefaultStampConfig] FOREIGN KEY ([DefaultStampConfigID]) REFERENCES [dbo].[DISC_DefaultStampConfig] ([ID])
GO
ALTER TABLE [dbo].[DnnProduct_CDS_StampSets] ADD CONSTRAINT [FK_DnnProduct_CDS_StampSets_DnnProduct_CDS_Templates] FOREIGN KEY ([TemplateID]) REFERENCES [dbo].[DnnProduct_CDS_Templates] ([ID])
GO
